home *** CD-ROM | disk | FTP | other *** search
/ SGI Developer Toolbox 6.1 / SGI Developer Toolbox 6.1 - Disc 4.iso / public / fax / src / port / 386bsd / defs next >
Text File  |  1994-08-01  |  10KB  |  324 lines

  1. #    $Header: /usr/people/sam/fax/port/386bsd/RCS/defs,v 1.24 1994/03/29 01:05:19 sam Rel $
  2. #
  3. # FlexFAX Facsimile Software
  4. #
  5. # Copyright (c) 1988, 1989, 1990, 1991, 1992, 1993, 1994 Sam Leffler
  6. # Copyright (c) 1991, 1992, 1993, 1994 Silicon Graphics, Inc.
  7. # Permission to use, copy, modify, distribute, and sell this software and 
  8. # its documentation for any purpose is hereby granted without fee, provided
  9. # that (i) the above copyright notices and this permission notice appear in
  10. # all copies of the software and related documentation, and (ii) the names of
  11. # Sam Leffler and Silicon Graphics may not be used in any advertising or
  12. # publicity relating to the software without the specific, prior written
  13. # permission of Sam Leffler and Silicon Graphics.
  14. # THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND, 
  15. # EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY 
  16. # WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.  
  17. # IN NO EVENT SHALL SAM LEFFLER OR SILICON GRAPHICS BE LIABLE FOR
  18. # ANY SPECIAL, INCIDENTAL, INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND,
  19. # OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  20. # WHETHER OR NOT ADVISED OF THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF 
  21. # LIABILITY, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
  22. # OF THIS SOFTWARE.
  23. #
  24.  
  25. #
  26. # These definitions are for building the software on a 486 under
  27. # 386BSD  0.1 using gcc 2.3.3(.5) and libg++-2.3
  28. #
  29. # TARGET:    386bsd
  30. # COMPILER:    gcc
  31. #
  32. SHELL    = /bin/bash
  33. DESTDIR    = .
  34. NULL    =
  35. MAKEFILE= Makefile
  36.  
  37. #
  38. # Location of auxiliary stuff needed
  39. #
  40. PORT    = ${DEPTH}/port/freebsd        # use freebsd sources
  41. BSDI    = ${DEPTH}/port/bsdi
  42. GENERIC    = ${DEPTH}/port/generic
  43. #
  44. # Basic tools used in the build process.
  45. #
  46.  
  47. C++    = /usr/local/bin/g++
  48. CC    = /usr/local/bin/gcc
  49. NAWK    = /usr/bin/awk
  50. INSTALL    = bash ${BSDI}/install.sh
  51. MKDEPEND= ${GENERIC}/mkdepend
  52. AR    = /usr/bin/ar
  53. RANLIB    = /usr/bin/ranlib
  54. SED    = /usr/bin/sed
  55.  
  56. #
  57. # AR options for creating/updating an archive
  58. #
  59. AROPTS=    crl
  60.  
  61. #
  62. # Special options for lptops compilation (yech).
  63. #
  64. LPTOPSLCOPTS=
  65.  
  66. #
  67. # 386BSD execs getty to do the work.
  68. # Set GettyArgs to "%l std.%s" in your config file.
  69. #
  70. SYSGETTY=GettyBSD.c++
  71.  
  72. #
  73. # 386BSD wants BSD-style UUCP lock support.
  74. #
  75. UUCP_LOCKDIR=/var/spool/lock
  76. UUCP_LOCKTYPE=0
  77. UUCP_LOCKMODE=0644
  78.  
  79. #
  80. # Location of Adobe Font Metrics for lptops.
  81. #
  82. AFMDIR=/usr/local/lib/afm
  83.  
  84. #
  85. # PostScript imager for server.  PSPACKAGE is one of:
  86. #
  87. # dps    for Display Postscript
  88. # gs    for Ghostscript
  89. #
  90. # and PSIMAGER is the pathname of the binary executable.
  91. #
  92. PSPACKAGE=gs
  93. PSIMAGER=/usr/local/bin/gs
  94.  
  95. #
  96. # Mail program sending notification messages.
  97. #
  98. SENDMAIL=/usr/sbin/sendmail
  99.  
  100. #
  101. # Default optimizer and prototype options
  102. #
  103. OPTIMIZER=-g
  104. #PROTOTYPES=-prototypes
  105. CVERSION=-D__ANSI_CPP__
  106. GVERSION=
  107. C++FILE=-x c++
  108.  
  109. # default definitions for programs--overide them as desired
  110. LIBS=    ${LIBUTIL} ${LIBTIFF} ${LIBIV} -lutil
  111. LLDLIBS=${LIBS} ${MACHDEPLIBS}
  112. #
  113. # Override this definition to eliminate shared library use.
  114. #
  115. SHDLIBC=-lc
  116.  
  117. #
  118. # Libraries that may vary from machine to machine (especially if
  119. # you use GNU GCC instead of AT&T C++).
  120. #
  121. MACHDEPLIBS=-lg++
  122. #
  123. # You must have v3.0 or newer of the TIFF library.  If
  124. # you already have it installed, or if you have version 3.0
  125. # or newer of InterViews installed (which includes the TIFF
  126. # library), you can point these to those places.  Otherwise,
  127. # you can just use the code provided here.
  128. #
  129. TIFF=    ${DEPTH}/libtiff
  130. LIBTIFF=${TIFF}/libtiff.a
  131. #
  132. # If you already have InterViews 3.0 or newer installed,
  133. # define these to be something like:
  134. #
  135. #IV=    /usr/include
  136. #LIBIV=    /usr/lib/libIV.a
  137. # Otherwise you can just use the subset of classes used by
  138. # the fax software and collected here in a hacked-up library.
  139. #
  140. IV=    ${DEPTH}/iv
  141. LIBIV=    ${IV}/libivhack.a
  142. # random utility functions and classes
  143. UTIL=    ${DEPTH}/util
  144. LIBUTIL=${UTIL}/libfaxutil.a
  145.  
  146. #
  147. # Uid&Gid for installing server stuff.  Note that the server process
  148. # proper (/usr/etc/faxd or similar) must either run setuid root or
  149. # setuid uucp (i.e. fax and uucp must have the same uid).  This is
  150. # so that the fax server can participate in the UUCP locking scheme
  151. # and thereby implement tty line sharing (i.e. share the same line
  152. # and modem for both fax and data).
  153. #
  154. FAXUSER=uucp
  155. FAXGROUP=dialer
  156.  
  157. #
  158. # Directories where stuff gets placed:
  159. #
  160. # BIN        client-directed applications
  161. # LIBDATA    client-directed application library data files
  162. # LIBEXEC    client-directed application library executables
  163. # SPOOL        spooling area for servers
  164. # DOC        non-manual documentation
  165. # USRETC    place for servers (faxd & faxd.recv)
  166. #
  167. BIN=    /usr/local/bin
  168. LIBDATA=/usr/local/lib/fax
  169. LIBEXEC=/usr/local/lib/fax
  170. SPOOL=    /var/spool/fax
  171. DOC=    /usr/local/doc/flexfax
  172. USRETC=    /usr/local/etc
  173. #
  174. # Manual-related controls:
  175. #
  176. # MAN        head of manual tree
  177. # MANAPP    subdirectory for stuff in BIN
  178. # MANSYS    subdirectory for server & server-related apps
  179. # MANFILES    subdirectory for file format info 
  180. # PAGEDIRT    temp files to remove on clean/clobber
  181. #
  182. MAN    = /usr/local/man
  183. MANAPPS    = man1
  184. MANSYS    = man8
  185. MANFILES= man5
  186.  
  187. MANCAPP    = ${CLIENTAPPS}
  188. MANCFILE= ${CLIENTFILES:.4f=.5f}
  189. MANSAPP    = ${SERVERAPPS:.1m=.8c}
  190. MANSFILE= ${SERVERFILES:.4f=.5f}
  191. PAGEDIRT= ${MANCFILE} ${MANSAPP} ${MANSFILE}
  192.  
  193. .SUFFIXES: .1m .4f .5f .8c
  194. .1m.8c:; ${MANSED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
  195. .4f.5f:; ${MANSED} -e 's/1M/8C/' -e 's/4F/5F/' $< > $@
  196.  
  197. # programs used during installation
  198. ECHO=    /bin/echo
  199. GREP=    /usr/bin/grep
  200. RM=    /bin/rm
  201. PWD=    /bin/pwd
  202. CHROOT=    /usr/sbin/chroot
  203.  
  204. #
  205. # Definitions used by common rules.
  206. #
  207. COMMONRULES=${DEPTH}/rules
  208. COMMONTARGS= clobber clean rmtargets depend
  209. #COMMONTARGS= clobber clean rmtargets depend incdepend
  210.  
  211. #
  212. # C compiler flags are composed of variable (set on the command line),
  213. # local (defined in the makefile), and global (defined in this file)
  214. # parts, in that order.  This ordering is used so that variable or
  215. # locally specified include directories are searched before the globally
  216. # specified ones.
  217. #
  218. CFLAGS=    ${CVERSION} ${VCFLAGS} ${LCFLAGS} ${GCFLAGS}
  219.  
  220. VCFLAGS=${VCDEFS} ${VCINCS} ${VCOPTS}
  221. LCFLAGS=${LCDEFS} ${LCINCS} ${LCOPTS}
  222. GCFLAGS=${GCDEFS} ${GCINCS} ${GCOPTS}
  223.  
  224. COPTS=    ${VCOPTS} ${LCOPTS} ${GCOPTS}
  225. CDEFS=    ${VCDEFS} ${LCDEFS} ${GCDEFS}
  226. CINCS=    ${VCINCS} ${LCINCS} ${GCINCS}
  227.  
  228. GCOPTS=    ${OPTIMIZER} ${PROTOTYPES}
  229. GCDEFS=    -D__ANSI_CPP__ -D__bsdi__
  230. GCINCS=    -I- -I. -I${DEPTH} -I${PORT} -I${BSDI} -I${GENERIC} -I${UTIL} -I${TIFF}
  231. #
  232. # C++ flags are decomposed using the same hierarchy as C flags.
  233. #
  234. C++FLAGS=${CVERSION} ${VC++FLAGS} ${LC++FLAGS} ${GC++FLAGS}
  235.  
  236. VC++FLAGS=${VC++DEFS} ${VC++INCS} ${VC++OPTS}
  237. LC++FLAGS=${LC++DEFS} ${LC++INCS} ${LC++OPTS}
  238. GC++FLAGS=${GC++DEFS} ${GC++INCS} ${GC++OPTS}
  239.  
  240. C++OPTS=${VC++OPTS} ${LC++OPTS} ${GC++OPTS}
  241. C++DEFS=${VC++DEFS} ${LC++DEFS} ${GC++DEFS}
  242. C++INCS=${VC++INCS} ${LC++INCS} ${GC++INCS}
  243.  
  244. GC++OPTS=${OPTIMIZER}
  245. GC++INCS=-I. -I${DEPTH} -I${PORT} -I${BSDI} -I${GENERIC} -I${UTIL} \
  246.     -I${IV} -I${TIFF}
  247. GC++DEFS=-D__ANSI_CPP__ -D__bsdi__
  248.  
  249. #
  250. # Loader flags, composed of library (-l's) and option parts, with
  251. # the libraries appearing last.  Both of these are divided into variable,
  252. # local, and global parts.  The composition of LDFLAGS is done in the
  253. # other "direction" from CFLAGS so that all the -L's, that are part of
  254. # LDOPTS, appear before any of the -l's, which are part of LDLIBS.
  255. # Another benefit of segregating the libraries from the remaining of the
  256. # loader options is that the libraries alone can easily be given to
  257. # another program, e.g., lint.
  258. #
  259. # Notes:
  260. #   - If a program should not be linked with the shared version of libc,
  261. #     then its make file should override the setting of SHDLIBC with a
  262. #     line such as "SHDLIBC=".
  263. #
  264. LDFLAGS=${LDOPTS} ${LDLIBS}
  265.  
  266. LDOPTS=${VLDOPTS} ${LLDOPTS} ${GLDOPTS}
  267. LDLIBS=${VLDLIBS} ${LLDLIBS} ${GLDLIBS}
  268.  
  269. GLDOPTS=-L${ROOT}/usr/local/lib
  270. GLDLIBS=${SHDLIBC}
  271.  
  272. #
  273. # Convenient command macros that include the flags macros.
  274. #
  275. C++F=    ${C++} ${C++FLAGS}
  276. CCF=    ${CC} ${CFLAGS}
  277.  
  278. #
  279. # Shell script for generating make dependencies.  MKDEPEND is a shorthand
  280. # for the tool's absolute pathname.  MKDEPENDC adds MKDEPCFLAGS and the -c
  281. # mkdepend option to this.  The other language's mkdepend variables try to
  282. # include their language's name in the variable names.  Unfortunately, a
  283. # lot of makefiles already use the nondescript LMKDEPFLAGS for C language
  284. # mkdepend options, so we initialize LMKDEPCFLAGS with ${LMKDEPFLAGS}.
  285. #
  286. MKDEPENDC++    =${MKDEPEND} ${MKDEPC++FLAGS} -c "${C++F} ${C++FILE} -M"
  287. MKDEPENDC    =${MKDEPEND} ${MKDEPCFLAGS} -c "${CCF} -M"
  288.  
  289. MKDEPC++FLAGS    =${VMKDEPC++FLAGS} ${LMKDEPC++FLAGS} ${GMKDEPC++FLAGS}
  290. MKDEPCFLAGS    =${VMKDEPCFLAGS} ${LMKDEPCFLAGS} ${GMKDEPCFLAGS}
  291. LMKDEPCFLAGS    =${LMKDEPFLAGS}
  292.  
  293. GMKDEPFLAGS    =-e 's@ ${INCLDIR}/@ $${INCLDIR}/@' -e 's@ ${ROOT}/@ $${ROOT}/@'
  294. GMKDEPC++FLAGS    =${GMKDEPFLAGS} -s C++ -e 's@\.c++\.o *: @\.o: @'
  295. GMKDEPCFLAGS    =${GMKDEPFLAGS}
  296.  
  297. #
  298. # Macro to add to LMKDEPCFLAGS or LMKDEPC++FLAGS if your makefile builds
  299. # single-source programs using null suffix rules (e.g., .c:}.  This option
  300. # works for both C and C++ make depend.
  301. #
  302. NULLSUFFIX_MKDEPFLAG=-e 's@\.o+*:@:@'
  303. #
  304. # MKDEPFILE is the name of the dependency database, included by rules.
  305. #
  306. MKDEPFILE=Makedepend
  307. #
  308. # CDEPFILES lists all C or cc-compiled source files that depend on header
  309. # files computable by ${MKDEPENDC}.  C++DEPFILES lists all C++ files having
  310. # dependencies computable by ${MKDEPENDC++}.
  311. #
  312. C++DEPFILES=${C++FILES}
  313. CDEPFILES=${CFILES}
  314. DEPFILES=${C++DEPFILES} ${CDEPFILES}
  315.  
  316. #
  317. # Directory shorthands, mainly for make depend (see GMKDEPFLAGS above).
  318. #
  319. INCLDIR    =${ROOT}/usr/include
  320.